package com.situ.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * SY_Menu实体类
 * 
 * @author 
 *
 */
public class SyMenu {
	/***/
	private Object id; 
	/***/
	private String MenuName; 
	/***/
	private Integer Parent; 
	/***/
	private String Url; 
	/***/
	private String OnClick; 
	/***/
	private String Icon; 
	/***/
	private Integer OrderIndex; 
	/***/
	private Integer FlowID; 
	/***/
	private Integer Disabled; 
	/**
	 * 实例化
	 */
	public SyMenu() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public SyMenu(JSONObject obj) {
		this();
		this.setId(obj.get("id"));
		if (obj.get("MenuName") instanceof String) {
			this.setMenuName((String) obj.get("MenuName"));
		}
		if (obj.get("Parent") instanceof Number) {
			this.setParent(((Number) obj.get("Parent")).intValue());
		}
		if (obj.get("Url") instanceof String) {
			this.setUrl((String) obj.get("Url"));
		}
		if (obj.get("OnClick") instanceof String) {
			this.setOnClick((String) obj.get("OnClick"));
		}
		if (obj.get("Icon") instanceof String) {
			this.setIcon((String) obj.get("Icon"));
		}
		if (obj.get("OrderIndex") instanceof Number) {
			this.setOrderIndex(((Number) obj.get("OrderIndex")).intValue());
		}
		if (obj.get("FlowID") instanceof Number) {
			this.setFlowID(((Number) obj.get("FlowID")).intValue());
		}
		if (obj.get("Disabled") instanceof Number) {
			this.setDisabled(((Number) obj.get("Disabled")).intValue());
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getId() != null) {
			result.put("id",this.getId());
		}
		if (this.getMenuName() != null) {
			result.put("MenuName",this.getMenuName());
		}
		if (this.getParent() != null) {
			result.put("Parent",this.getParent());
		}
		if (this.getUrl() != null) {
			result.put("Url",this.getUrl());
		}
		if (this.getOnClick() != null) {
			result.put("OnClick",this.getOnClick());
		}
		if (this.getIcon() != null) {
			result.put("Icon",this.getIcon());
		}
		if (this.getOrderIndex() != null) {
			result.put("OrderIndex",this.getOrderIndex());
		}
		if (this.getFlowID() != null) {
			result.put("FlowID",this.getFlowID());
		}
		if (this.getDisabled() != null) {
			result.put("Disabled",this.getDisabled());
		}
		return result;
	}
	
	
	/**
	 * 获取id
	 * 
	 * @return
	 */
	public Object getId() {
		return id;
	}

	/**
	 * 设置id
	 * 
	 * @param id
	 */
	public void setId(Object id) {
		this.id = id;
	}
	
	/**
	 * 获取MenuName
	 * 
	 * @return
	 */
	public String getMenuName() {
		return MenuName;
	}

	/**
	 * 设置MenuName
	 * 
	 * @param MenuName
	 */
	public void setMenuName(String MenuName) {
		this.MenuName = MenuName;
	}
	
	/**
	 * 获取Parent
	 * 
	 * @return
	 */
	public Integer getParent() {
		return Parent;
	}

	/**
	 * 设置Parent
	 * 
	 * @param Parent
	 */
	public void setParent(Integer Parent) {
		this.Parent = Parent;
	}
	
	/**
	 * 获取Url
	 * 
	 * @return
	 */
	public String getUrl() {
		return Url;
	}

	/**
	 * 设置Url
	 * 
	 * @param Url
	 */
	public void setUrl(String Url) {
		this.Url = Url;
	}
	
	/**
	 * 获取OnClick
	 * 
	 * @return
	 */
	public String getOnClick() {
		return OnClick;
	}

	/**
	 * 设置OnClick
	 * 
	 * @param OnClick
	 */
	public void setOnClick(String OnClick) {
		this.OnClick = OnClick;
	}
	
	/**
	 * 获取Icon
	 * 
	 * @return
	 */
	public String getIcon() {
		return Icon;
	}

	/**
	 * 设置Icon
	 * 
	 * @param Icon
	 */
	public void setIcon(String Icon) {
		this.Icon = Icon;
	}
	
	/**
	 * 获取OrderIndex
	 * 
	 * @return
	 */
	public Integer getOrderIndex() {
		return OrderIndex;
	}

	/**
	 * 设置OrderIndex
	 * 
	 * @param OrderIndex
	 */
	public void setOrderIndex(Integer OrderIndex) {
		this.OrderIndex = OrderIndex;
	}
	
	/**
	 * 获取FlowID
	 * 
	 * @return
	 */
	public Integer getFlowID() {
		return FlowID;
	}

	/**
	 * 设置FlowID
	 * 
	 * @param FlowID
	 */
	public void setFlowID(Integer FlowID) {
		this.FlowID = FlowID;
	}
	
	/**
	 * 获取Disabled
	 * 
	 * @return
	 */
	public Integer getDisabled() {
		return Disabled;
	}

	/**
	 * 设置Disabled
	 * 
	 * @param Disabled
	 */
	public void setDisabled(Integer Disabled) {
		this.Disabled = Disabled;
	}

	@Override
	public String toString() {
		return "SyMenu [id=" + id + " , MenuName=" + MenuName + " , Parent=" + Parent + " , Url=" + Url + " , OnClick=" + OnClick + " , Icon=" + Icon + " , OrderIndex=" + OrderIndex + " , FlowID=" + FlowID + " , Disabled=" + Disabled + "  ]";
	
	}
	
	
}
